package routers

import (
	"github.com/gogf/gf/v2/net/ghttp"
	"seawolf-admin-go/internal/app/admin/controller"
	"seawolf-admin-go/internal/app/admin/controller/workflow"
)

func Reg(s *ghttp.Server, defaultVersion string) {
	/*s.Group("/", func(group *ghttp.RouterGroup) {
		controller.NewHelloController(group, defaultVersion)
	})*/
	s.Group("/open", func(group *ghttp.RouterGroup) {
		controller.NewOpenController(group, defaultVersion)
	})
	s.Group("/admin", func(group *ghttp.RouterGroup) {
		controller.NewAdminController(group, defaultVersion)
	})
	s.Group("/orgMember", func(group *ghttp.RouterGroup) {
		controller.NewOrgMemberController(group, defaultVersion)
	})

	SysReg(s, defaultVersion)
	CmsReg(s, defaultVersion)
	DataReg(s, defaultVersion)

	s.Group("/workflow/procdef", func(group *ghttp.RouterGroup) {
		workflow.NewProcdefController(group, defaultVersion)
	})

}
